/* Yet Another Experimental Software Renderer
 *
 * Copyright (c) 2010 Pawel "Hery" Dziepak
 */

#include <string>

#include "types.h"
#include "pipeline.h"

namespace yaesr {
	class bmp_output : public pixel_output {
	public:
		bmp_output(const std::string &fname, int w, int h);

		void flush();

		void write_pixel(int x, int y, color pixel_color);
		void clear(color pixel_color);

	private:
		std::string filename;

		u32 *output_buffer;
	};
}